package utils;

import java.sql.Date;
import java.util.Calendar;

public class DateUtils
{
	private static final String[] MONTHS =
	{ "January", "February", "March", "April", "May", "June", "July", "Augost", "September", "October", "November", "December" };

	public static String getSQLDateMonth(String sDate)
	{
		Date date = Date.valueOf(sDate);
		Calendar calendar = Calendar.getInstance();
		calendar.setTimeInMillis(date.getTime());

		return MONTHS[calendar.get(Calendar.MONTH)];
	}

	public static String getSQLDateMonth(int iSQLMonth)
	{
		return MONTHS[iSQLMonth];
	}
}
